<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Add new post - admin</title>
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../libs/nprocess/css/nprogress.css">
    <link rel="stylesheet" href="../libs/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../css/adminCommon.css">
    @@include("../common/admin/loginStatus.html")
    @@include("../common/nprogress.html")
</head>

<body>
    <script>NProgress.start()</script>
    @@include("../common/admin/aside.html")
    <div class="main">
        @@include("../common/admin/nav.html")
        <div class="container-fluid">
            <div class="page-title">
                <h1>写文章</h1>
            </div>
            <form action="" class="row">
                <div class="col-md-9">
                    <div class="form-group">
                        <label for="title">标题</label>
                        <input type="text" id="title" class="form-control input-lg" placeholder="文章标题">
                    </div>
                    <div class="form-group">
                        <label for="content">内容</label>
                        <textarea name="" id="content" class="form-control input-lg" cols="30" rows="10"
                            style="resize: vertical;" placeholder="内容"></textarea>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group">
                        <label for="feature">文章封面</label>
                        <input type="file" name="thumbnail" id="feature" placeholder="文章封面">
                    </div>
                    <div class="form-group cate">
                        <label for="category">所属分类</label>
                        @@include("../common/admin/cateQuery.html")
                    </div>
                    <div class="form-group">
                        <label for="created">发布时间</label>
                        <input type="datetime-local" name="createAt" id="created" class="form-control input-md">
                    </div>
                    <div class="form-group">
                        <label for="status">状态</label>
                        <select name="state" id="state" class="form-control input-md">
                            <option value="0">草稿</option>
                            <option value="1">已发布</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <button class="btn submit btn-primary btn-md">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script>NProgress.done()</script>
</body>
<script src="../js/admin/post-add.js"></script>

</html>